﻿using System;
using System.Diagnostics;
using Manso.cBot.Common;

namespace cBot
{
    /// <summary>
    /// cBot startup program
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {            
            Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
            cBotContext.Instance.Initialize();
            cBotContext.Instance.Connect();
            while (Console.ReadKey().Key != ConsoleKey.Escape)
            {                
            }
            cBotContext.Instance.Disconnect();
        }
    }
}
